<?php echo $head; ?>
<script type="text/javascript" src="<?php echo base_common_admin; ?>js/delfile.js"></script>
<script type="text/javascript" src="<?php echo base_common_admin; ?>js/<?php echo $language; ?>/date.js"></script>
<script type="text/javascript" src="<?php echo base_common_admin; ?>js/<?php echo $language; ?>/calendar.js"></script>
<script type="text/javascript" src="<?php echo base_common; ?>ckeditor/ckeditor.js"></script>
<script type="text/javascript">
$(function(){
	$('.date-pick').datePicker({startDate : "2000/01/01"});
});
</script>
</head>
<body>
<div id="layout">
<?php echo $header; ?>
<div id="pageBody" class="clearfix">
<div id="primary">
<dl class="schedule">
<dt class="scheduleTitle"><span><?php echo $lang["product"]["title"]; ?> » <?php echo $lang["general"]["regist"]; ?></span></dt>
<dd class="schedulecontent">
<div class="scheduleBlock clearfix">
<form method="post" enctype="multipart/form-data" action="<?php echo $base_link; ?>done">
<table>
<tbody>	
	<tr>
        <th><?php echo $lang["product"]["category"]; ?><span class="required">※</span></th>
        <td><?php echo $categoryView; ?><?php echo $errormsg_category; ?></td>
    </tr>
    <tr>
        <th><?php echo $lang["product"]["price"]; ?><span class="required">※</span></th>
        <td><input type="text" class="sizem" name="price" value="<?php echo $price; ?>" /><span class="example"><?php echo format_number($price); ?></span><?php echo $errormsg_price; ?></td>
    </tr>
        <tr>
        <th><?php echo $lang["product"]["spePrice"]; ?></th>
        <td><input type="text" class="sizem" name="spePrice" value="<?php echo $spePrice; ?>" /></td>
    </tr>
    <tr>
        <th><?php echo $lang["product"]["speStartDate"]; ?></th>
        <td><input type="text" class="sizes date-pick dp-applied" name="speStartDate" value="<?php echo $speStartDate; ?>" />
        <span class="example"><?php echo $lang["general"]["example_date"]; ?></span>
        </td>
    </tr>
    <tr>
        <th><?php echo $lang["product"]["speEndDate"]; ?></th>
        <td><input type="text" class="sizes date-pick dp-applied" name="speEndDate" value="<?php echo $speEndDate; ?>" />
        <span class="example"><?php echo $lang["general"]["example_date"]; ?></span>
        </td>
    </tr>
    <tr>
        <th><?php echo $lang["product"]["quantity"]; ?></th>
        <td><input type="text" class="sizem" name="quantity" value="<?php echo $quantity;?>" /></td>
    </tr>    
    <tr>
        <th><?php echo $lang["product"]["feature"]; ?></th>
        <td><?php echo $featureradio; ?></td>
    </tr>
    <?php echo $lang_fields; ?>
    <tr>
        <th><?php echo $lang["product"]["image"]; ?></th>
        <td>
        <?php echo $imageView; ?>
        <input type="file" class="sizem" name="image" />
        <input type="hidden" name="check_image" value="<?php echo $image; ?>" />
        </td>
    </tr>
	<tr>
        <th><?php echo $lang["product"]["position"]; ?></th>
        <td><input type="text" name="position" value="<?php echo $position; ?>" /></td>
    </tr>
    <tr>
        <th><?php echo $lang["product"]["state"]; ?></th>
        <td><?php echo $visibleradio; ?></td>
    </tr>
</tbody>
</table>

<ul class="buSubmit">
<li class="buSubmitLast"><input type="image" src="<?php echo base_common_admin; ?>images/<?php echo $language; ?>/bu_register.gif" alt="<?php echo $lang["general"]["confirm"]; ?>" /></li>
<!-- / class buSubmit --></ul>
</form>

</div></dd>
<!-- / class schedule --></dl>
<!-- / id primary --></div>

<?php echo $menu; ?>

<!-- / id pageBody --></div>
<!-- / id layout --></div>
<?php echo $footer; ?>
</body>
</html>
<script type="text/javascript">	
function message(var1, var2, var3, var4, var5, var6)
{	
	var txt = "<?php echo $lang["general"]["confirm_delete_msg"]; ?>";
	if(confirm(txt)){
		delfile("<?php echo base_index; ?>delfile", var1, var3, var4, var5, var6);
		var d = document.getElementById(var2);		
		d.parentNode.removeChild(d);
		return true;
	}
	else{
		return false;
	}
}
</script>
<?php lang_ckeditor($language, $arr_fields_product, $arr_lang, $homepage); ?>